package com.siam.package_merchant.feign;

import com.siam.package_common.entity.BasicResult;
import com.siam.package_merchant.entity.MerchantWithdrawRecord;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "merchant-siam")
public interface MerchantWithdrawRecordFeignApi {

    @PostMapping(value = "/api/merchantWithdrawRecord/countByAuditStatus")
    BasicResult<Integer> countByAuditStatus(@RequestParam("auditStatus") int auditStatus);

    @PostMapping(value = "/api/merchantWithdrawRecord/queryPaymentProcessingRecord")
    BasicResult<List<MerchantWithdrawRecord>> queryPaymentProcessingRecord(@RequestParam("merchantId") int merchantId);

    @PostMapping(value = "/api/merchantWithdrawRecord/updateAuditStatusSuccess")
    BasicResult updateAuditStatusSuccess(@RequestParam("orderNo") String orderNo);

    @PostMapping(value = "/api/merchantWithdrawRecord/updateAuditStatusFail")
    BasicResult updateAuditStatusFail(@RequestParam("orderNo") String orderNo, @RequestParam("auditReason") String auditReason);
}